from django.shortcuts import render,redirect

# Create your views here.
from activity.models import Activity,School

from django.views import View

class AddView(View):
    def get(self,request):
        school_data=School.objects.all()
        return render(request,'add.html',locals())
    def post(self,reqest):
        aa=reqest.POST
        print(aa)
        # School.objects.create(
        #     number=reqest.POST.get('name'),
        #     title=reqest.POST.get('title'),
        #
        # )

        return redirect('/activity/info/')


class InfoView(View):
    def get(self,request):
        return render(request,'info.html')
    def post(self,reuqest):
        pass


